<?php
$uri = get_base_url() . url_title(trim($new->category), 'dash', TRUE) . '/' . url_title(trim($new->title), 'dash', TRUE) . '-n' . $new->cat_id . '-' . $new->id;
$thumbnail = ($new->thumbnail != '') ? $new->thumbnail : '/images/noimage.jpg';
$date = date('d/m/Y', strtotime($new->created_date));
?>
<article class="underline">
    <a href="<?php echo $uri; ?>"><img class="thumbnail" title="<?php echo $new->title; ?>" src="<?php echo $thumbnail; ?>"></a>
    <a class="title" href="<?php echo $uri; ?>"><?php echo $new->title; ?></a>
    <p class="summary"><?php echo shorten_str($new->summary, MAXLENGHT_NEWS_MOBILE_DESCRIPTION); ?></p>
    <div class="date"><span><?php echo $date; ?></span></div>
</article>